import request from '@sc/request';

export async function getSmsCode(mobile) {
  return request(`/ms/api/v1/uc/valid/mobile?mobile=${mobile}`, {
    method: 'GET',
  });
}
export async function getCheckByMail(mail) {
  return request(`/ms/api/v1/uc/valid/mail?mail=${mail}`, {
    method: 'GET',
  });
}
export async function getGetCodeByMail(data) {
  return request(`/ms/api/v1/uc/emailCode`, {
    method: 'GET',
    data,
  });
}
export async function getGetCodeByMobile(data) {
  return request(`/ms/api/v1/uc/captcha`, {
    method: 'GET',
    data,
  });
}

export async function postAuthentication(data) {
  return request(`/ms/api/v1/uc/identity/apply`, {
    method: 'POST',
    data,
  });
}

export async function queryImageFromOss(data) {
  return request(`/ms/api/v1/file/getFileDownloadUrl`, {
    method: 'POST',
    data,
  });
}
export async function queryCurrentUserInfo() {
  return request(`/ms/api/v1/uc/getuser/info`, {
    method: 'GET',
  });
}
export default '';
